package Presentacion;

import java.awt.EventQueue;

import javax.swing.JFrame;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Toolkit;
import java.awt.Insets;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import java.awt.Color;
import javax.swing.JList;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.JButton;

import com.toedter.calendar.JCalendar;

public class principal {

	private JFrame frmMoreCalendar;
	private final JLabel label = new JLabel("");
	private final JPanel panel = new JPanel();
	private final JList lstEvento = new JList();
	private final JLabel lblNewLabel = new JLabel("Día");
	private final JLabel lblMes = new JLabel("Mes");
	private final JLabel lblAo = new JLabel("Año");
	private final JComboBox comboBox = new JComboBox();
	private final JComboBox comboBox_1 = new JComboBox();
	private final JComboBox comboBox_2 = new JComboBox();
	private final JLabel lblNombreEvento = new JLabel("Nombre evento:");
	private final JTextField textField = new JTextField();
	private final JLabel label_1 = new JLabel("More Calendar");
	private final JButton btnModificar = new JButton("Modificar");
	private final JButton btnAadir = new JButton("Añadir");
	private final JButton btnEliminar = new JButton("Eliminar");
	private final JPanel panel_1 = new JPanel();

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					principal window = new principal();
					window.frmMoreCalendar.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public principal() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		textField.setBounds(109, 21, 131, 20);
		textField.setColumns(10);
		frmMoreCalendar = new JFrame();
		frmMoreCalendar.setResizable(false);
		frmMoreCalendar.getContentPane().setBackground(new Color(255, 255, 255));
		frmMoreCalendar.setTitle("More Calendar");
		frmMoreCalendar.setIconImage(Toolkit.getDefaultToolkit().getImage(principal.class.getResource("/images/iconitos_004.jpg")));
		frmMoreCalendar.setBounds(100, 100, 621, 447);
		frmMoreCalendar.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmMoreCalendar.getContentPane().setLayout(null);
		{
			label.setBounds(0, 0, 0, 0);
			frmMoreCalendar.getContentPane().add(label);
		}
		{
			lstEvento.setBounds(28, 259, 242, 133);
			lstEvento.setBackground(new Color(176, 196, 222));
			lstEvento.setBorder(new TitledBorder(null, "Eventos", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			frmMoreCalendar.getContentPane().add(lstEvento);
		}
		{
			panel.setBounds(302, 81, 270, 311);
			panel.setBackground(new Color(175, 238, 238));
			panel.setBorder(new TitledBorder(null, "Datos evento", TitledBorder.LEADING, TitledBorder.TOP, null, null));
			panel.setLayout(null);
			frmMoreCalendar.getContentPane().add(panel);
		}
		{
			lblNewLabel.setBounds(56, 78, 46, 14);
			panel.add(lblNewLabel);
		}
		{
			lblMes.setBounds(56, 121, 46, 14);
			panel.add(lblMes);
		}
		{
			lblAo.setBounds(56, 169, 46, 14);
			panel.add(lblAo);
		}
		{
			comboBox.setModel(new DefaultComboBoxModel(new String[] {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}));
			comboBox.setBounds(112, 75, 59, 20);
			panel.add(comboBox);
		}
		{
			comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Diciembre"}));
			comboBox_1.setBounds(112, 118, 95, 20);
			panel.add(comboBox_1);
		}
		{
			comboBox_2.setModel(new DefaultComboBoxModel(new String[] {"2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"}));
			comboBox_2.setBounds(112, 166, 59, 20);
			panel.add(comboBox_2);
		}
		{
			lblNombreEvento.setBounds(20, 24, 131, 14);
			panel.add(lblNombreEvento);
		}
		{
			panel.add(textField);
		}
		{
			btnModificar.setBounds(20, 243, 220, 23);
			panel.add(btnModificar);
		}
		{
			btnAadir.setBounds(20, 207, 220, 23);
			panel.add(btnAadir);
		}
		{
			btnEliminar.setBounds(20, 277, 220, 23);
			panel.add(btnEliminar);
		}
		{
			label_1.setForeground(new Color(30, 144, 255));
			label_1.setFont(new Font("Microsoft Sans Serif", Font.BOLD, 34));
			label_1.setBounds(156, 11, 264, 47);
			frmMoreCalendar.getContentPane().add(label_1);
		}
		{	
			JCalendar cal;
			cal=new JCalendar();
			panel_1.add(cal);
			panel_1.setBounds(29, 81, 242, 168);
			frmMoreCalendar.getContentPane().add(panel_1);
		}
	}
}
